
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">  
        <title>Test</title>
    </head>
    <body>
        <button onclick="lg('click')">点击</button>
        <button onclick="lg('job_collect')">收藏</button>
        <button onclick="lg('cv_send')">投简历</button>
        <button onclick="lg('cv_upload')">上传简历</button>
    </body>
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
    <script>
        function lg(cv_action){
            var info = {};
            info.user_id = 1;
            info.act_time =  new Date();
            info.action = cv_action;
            info.job_code = "sky";
            
            $.ajax({
                    url:"http://server1:80/kafka/tp_individual",
                    type:"Post",
                    data:JSON.stringify(info),
                    success:function(data){}
                }
            );
        }
    </script>
</html>